<?php
/**
 * 企业表 模型
 */
class enterpriseModel extends Model {
	/**
	 * 设置关联表
	 */
	public $_link = array(
		array(
			'mapping_type' => BELONGS_TO,
			'class_name' => 'recommend',
			'foreign_key' => 're_id',
			'mapping_name' => 'recommend',
			'mapping_fields'=>'name'
		),
		array(
			'mapping_type' => BELONGS_TO,
			'class_name' => 'euser',
			'foreign_key' => 'euser_id',
			'mapping_name' => 'Euser',
			'mapping_fields' => 'euser_id,username,q'
		)
	);
}
?>